Repository navigation
macOS: enable nested virtualization by default on supported Macs - #76
Merged
Merged
Conversation
Persist a create-time opt-in for native aarch64 HVF guests. Validate the macOS EL2 capability and the selected QEMU before boot, then enable the platform GIC and guest EL2.
Detect host EL2 and QEMU support at cold boot and persist a create-time opt-out for individual VMs and clusters. Keep the userspace GIC available when running newer QEMU on macOS before 15.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintainer announcement
Native aarch64 guests now get Arm EL2 automatically on capable Apple Silicon Macs with macOS 15+ and QEMU 11.1+. This gives a KVM-enabled Linux guest
/dev/kvmso it can run accelerated inner VMs. ltvm checks support on cold boot and uses ordinary HVF if nesting is unavailable.create --disable-nestingandcluster create --disable-nestingsave the opt-out across restarts.On a capable Mac,
ltvm doctorreports when the selected QEMU is older than 11.1.ltvm doctor --fixandltvm install --qemucan install the signed, checksum-pinned QEMU 11.1.3 bundle from this repository. The ltvm skill and operator docs cover the default and the opt-out.Verification
/dev/kvm. The same VM cold-booted at EL1 with QEMU 10.2.2 and returned to EL2 when switched back. The explicit opt-out stayed at EL1 across restart.